﻿<%@ control language="C#" autoeventwireup="true" inherits="UserControls_UCAttendanaceTracking, App_Web_xdxpwsjc" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v10.2, Version=10.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
    
<div style="float:left; width:100%; border-bottom: dashed #94C4DA 1px; margin-top:10px;">
    <div style="float:left">
        <img src="~/../images/news_top.gif" style="padding-left:5px"/>
        <span style="line-height:20px; font-weight:bold; padding:5px">Ghi chú cho Supervisor</span>  
    </div>
    <div style="float:right"><span style="line-height:20px; font-weight:normal; text-decoration:underline; padding:5px 25px 0px 0px"><a style="cursor:pointer; color:Blue" onclick='openPopupManagerMonitoring("<%= hdDate_tracking.Value %>", "<%= hdBy_sup.Value %>","<%= hdBy_manager.Value %>")'>Xem danh sách</a></span></div>
    <asp:HiddenField ID="hdDate_tracking" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="hdBy_sup" runat="server"></asp:HiddenField>
    <asp:HiddenField ID="hdBy_manager" runat="server"></asp:HiddenField>       
</div>
<div style="clear:both; height:10px"></div>
    <div style="width:100%; float:left; padding:10px 10px 10px 10px;" align="center">
        <table style="font-family:Arial, Helvetica, sans-serif; font-size:13px; border-collapse:collapse;" cellpadding="0" cellspacing="0" border="0" width="80%">
            <tr>
                <td align="right" width="19%">Hành động:&nbsp;</td>
                <td>
                    <asp:TextBox ID="txtAction" runat="server" Width="200px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtAction" ErrorMessage=" *" InitialValue=" " 
                        ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
                <td></td>
            </tr>
            <tr>
                <td style="height:18px"></td>
            </tr>
            <tr>
                <td align="right">Ghi chú:&nbsp;</td>
                <td>
                    <asp:TextBox ID="txtComment" runat="server" Width="525px" Height="45px" 
                        TextMode="MultiLine"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtComment" ErrorMessage=" * " InitialValue=" " 
                        ValidationGroup="1"></asp:RequiredFieldValidator>
                </td>
                <td colspan="2" align="right" style="padding-right:12px" valign="bottom">
                    <asp:Button ID="btnSaveAction" runat="server" Text="Thực hiện" 
                        onclick="btnSaveAction_Click" ValidationGroup="1" /></td>
            </tr>
        </table>
    </div>

    <div style="clear:both; height:10px"></div>
    <div style="float:left; width:100%; border-bottom: dashed #94C4DA 1px;">
        <img src="~/../images/news_top.gif" style="padding-left:5px"/>
        <span style="line-height:20px; font-weight:bold; padding:5px">Thống kê</span>         
    </div>
    <div style="width:100%; float:left; padding:10px 10px 10px 10px">
        <table style="font-family:Arial, Helvetica, sans-serif; font-size:13px; width:98%; border-collapse:collapse;" cellpadding="0" cellspacing="0" border="1">
            <tr bgcolor="#94C4DA">
                <td rowspan="2" align="center"><b>NA</b></td>
                <td align="center" rowspan="2" width="22%" style="padding:15px; font-weight:bold">Cửa hàng</td>
                <td align="center" colspan="2"  style="padding:8px"><b>Đầu giờ</b></td>
                <td align="center" colspan="2"><b>Giữa giờ</b></td>
                <td align="center" colspan="2" ><b>Cuối giờ</b></td>
                <td rowspan="2" align="center"><b>Chi tiết</b></td>
            </tr>
            <tr bgcolor="#94C4DA">
                <td align="center" style="padding:8px 5px 8px 5px; font-weight:bold;">Đúng</td>
                <td align="center" style="font-weight:bold;">GPS</td>

                <td align="center" style="padding:8px 5px 8px 5px; font-weight:bold;">Đúng</td>
                <td align="center" style="font-weight:bold;">GPS</td>

                <td align="center" style="padding:8px 5px 8px 5px; font-weight:bold;">Đúng</td>
                <td align="center" style="font-weight:bold;">GPS</td>
            </tr>
            <asp:Repeater ID="repeaterTrackingStatistics" OnItemDataBound="repeaterTrackingStatistics_ItemDataBound" runat="server">
                <ItemTemplate>
                        <tr>
                        <td style="padding:8px">
                            <span style="line-height:25px;"><asp:Label ID="lbNa_charid" Text='<%# Eval("by_na") %>' runat="server"></asp:Label></span><br/>
                            <span style="line-height:25px;"><asp:Label ID="lbNa_name" Text='<%# Eval("na_name") %>' runat="server"></asp:Label></span><br/>
                        </td>
                        <td style="padding:8px">
                            <span style="line-height:25px;"><%# Eval("shop_name") %></span><br/>
                            <span style="line-height:25px;"><%# Eval("shift_name") %></span>
                            <asp:HiddenField ID="hdShop_charid" runat="server" Value='<%# Eval("by_shop") %>'></asp:HiddenField>
                            <asp:HiddenField ID="hdBy_shift" runat="server" Value='<%# Eval("by_shift") %>' ></asp:HiddenField> 
                        </td>
                        <td align="center"><asp:Label runat="server" ID="lbStarttime_ontime"></asp:Label></td>
                        <td align="center"><asp:Label runat="server" ID="lbStarttime_GPS"></asp:Label></td>

                        <td align="center"><asp:Label runat="server" ID="lbMiddletime_ontime"></asp:Label></td>
                        <td align="center"><asp:Label runat="server" ID="lbMiddletime_GPS"></asp:Label></td>
                        
                        <td align="center"><asp:Label runat="server" ID="lbEndtime_ontime"></asp:Label></td>
                        <td align="center"><asp:Label runat="server" ID="lbEndtime_GPS"></asp:Label></td>

                        <td align="center">
                            <asp:HyperLink ID="hyperViewDetailTracking" runat="server" Target="_blank">Xem</asp:HyperLink>
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                        <tr bgcolor="#CCCCFF">
                        <td style="padding:8px">
                            <span style="line-height:25px;"><asp:Label ID="lbNa_charid" Text='<%# Eval("by_na") %>' runat="server"></asp:Label></span><br/>
                            <span style="line-height:25px;"><asp:Label ID="lbNa_name" Text='<%# Eval("na_name") %>' runat="server"></asp:Label></span><br/>
                        </td>
                        <td style="padding:8px">
                            <span style="line-height:25px;"><%# Eval("shop_name") %></span><br/>
                            <span style="line-height:25px;"><%# Eval("shift_name") %></span>
                            <asp:HiddenField ID="hdShop_charid" runat="server" Value='<%# Eval("by_shop") %>'></asp:HiddenField>
                            <asp:HiddenField ID="hdBy_shift" runat="server" Value='<%# Eval("by_shift") %>' ></asp:HiddenField> 
                        </td>
                        <td align="center"><asp:Label runat="server" ID="lbStarttime_ontime"></asp:Label></td>
                        <td align="center"><asp:Label runat="server" ID="lbStarttime_GPS"></asp:Label></td>

                        <td align="center"><asp:Label runat="server" ID="lbMiddletime_ontime"></asp:Label></td>
                        <td align="center"><asp:Label runat="server" ID="lbMiddletime_GPS"></asp:Label></td>
                        
                        <td align="center"><asp:Label runat="server" ID="lbEndtime_ontime"></asp:Label></td>
                        <td align="center"><asp:Label runat="server" ID="lbEndtime_GPS"></asp:Label></td>

                        <td align="center">
                            <asp:HyperLink ID="hyperViewDetailTracking" runat="server" Target="_blank">Xem</asp:HyperLink>
                        </td>
                    </tr>
                    
                </AlternatingItemTemplate>
            </asp:Repeater>
        </table>
	</div>    
    <div style="clear:both; height:10px"></div>
    <div style="float:left; width:100%; border-bottom: dashed #94C4DA 1px; display:none">
        <img src="~/../images/news_top.gif" style="padding-left:5px"/>
        <span style="line-height:20px; font-weight:bold; padding:5px">Chi tiết chấm công</span>         
    </div>
    <div style="width:100%; float:left; padding:10px 10px 10px 10px; display:none" align="center">
        <table style="font-family:Arial, Helvetica, sans-serif; font-size:13px; border-collapse:collapse;" cellpadding="0" cellspacing="0" border="0" width="80%">
            <tr>
                <td align="right" width="19%">Cửa hàng:&nbsp;</td>
                <td>
                    <asp:DropDownList ID="cboShop" runat="server" Width="205px" AutoPostBack="True" 
                            onselectedindexchanged="cboShop_SelectedIndexChanged"></asp:DropDownList>
                </td>
                <td></td>
            </tr>
        </table>
    </div>
    
    <div style="width:100%; float:left; padding:10px 10px 10px 10px; display:none">
        <table style="font-family:Arial, Helvetica, sans-serif; font-size:13px; width:98%; border-collapse:collapse;" cellpadding="0" cellspacing="0" border="1">
            <tr bgcolor="#94C4DA">
                <td width="12%" align="center" style="padding:8px; color:#000"><b>NA</b></td>
                <td width="16%" align="center" style="color:#000"><b>Cửa hàng</b></td>
			    <td width="24%" align="center" style="color:#000"><b>Đầu giờ</b></td>
			    <td width="24%" align="center" style="color:#000"><b>Giữa giờ</b></td>
                <td width="24%" align="center" style="color:#000"><b>Cuối giờ</b></td>
            </tr>
    
            <asp:Repeater ID="repeaterTrackingDetail" runat="server" 
                onitemdatabound="repeaterTrackingDetail_ItemDataBound">
                <ItemTemplate>
                    <tr>
                	<td valign="middle" align="left" style="padding:5px;">
                        <asp:Label ID="lbBy_na" runat="server" Text='<%# Eval("by_na") %>' Visible="false"></asp:Label>
                        <span style="line-height:25px;"><%# Eval("by_na") %></span><br />
                        <span style="line-height:25px;"><%# Eval("na_name") %></span>
                    </td>
                    <td style="padding:5px">
                    	<span style="line-height:25px;"><%# Eval("shop_name") %></span><br/>
                        <span style="line-height:25px;"><%# Eval("shift_name") %></span><br />
                        <a style="padding:0px" target="_blank" href='<%# String.Format("MapWithClickablePushpins.aspx?shop={0}&type={1}", Eval("by_shop"),"viewShopPoint") %>'>Xem vị trí cửa hàng</a>
                        <asp:HiddenField ID="hdBy_shift" runat="server" Value='<%# Eval("by_shift") %>' ></asp:HiddenField>
                        <asp:HiddenField ID="hdBy_shop" runat="server" Value='<%# Eval("by_shop") %>' ></asp:HiddenField>
                    </td>
                    <!-- Dau gio -->
                    <td valign="top">
                    	<div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#000; font-style:italic; font-weight:bold">Thông tin giờ</span>
                        </div>
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Giờ GPS:</span><br/>
                        		<span style="line-height:25px;">Điện thoại: </span><br/>
                        		<span style="line-height:25px;">Hệ thống: </span><br/>
							</div>
                            <div style="float:left; padding-left:15px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_gps"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_phone"></asp:Label></span><br/>
                          		<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_system"></asp:Label></span><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#000; font-style:italic; font-weight:bold">Trạng thái</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Đúng giờ:</span><br/>
                        		<span style="line-height:25px;">Đúng vị trí: </span><br />
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                                <span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_ontime_status"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_gps_status"></asp:Label></span>&nbsp;&nbsp;<asp:HyperLink ID="hyperStarttime_Latlng" Target="_blank" Text="Xem" runat="server"></asp:HyperLink><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#000; font-style:italic; font-weight:bold">Hành động Supervisor</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Hành động:</span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_action" ></asp:Label></span><br/>
                                <a style="cursor:pointer; color:Blue; text-decoration:underline" onclick='openPopupSupMonitoring("<%# Eval("by_na")%>", "<%# Eval("by_shift")%>", "<%# Eval("by_shop")%>", "<%= hdDate_tracking.Value %>",1)'>Xem</a>
                            </div>
                        </div>
                    </td>
                    <!-- End Dau gio -->
                    
                    <!--Giua gio -->
                    <td valign="top">
                    	<div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">GPS:</span><br/>
                        		<span style="line-height:25px;">Điện thoại: </span><br/>
                        		<span style="line-height:25px;">Hệ thống: </span><br/>
							</div>
                            <div style="float:left; padding-left:15px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_gps"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_phone"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_system"></asp:Label></span><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Đúng giờ:</span><br/>
                        		<span style="line-height:25px;">Đúng vị trí: </span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_ontime_status"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_gps_status"></asp:Label></span>&nbsp;&nbsp;<asp:HyperLink ID="hyperMiddletime_Latlng" Target="_blank" Text="Xem" runat="server"></asp:HyperLink><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Hành động:</span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_action"></asp:Label></span><br/>
                                <a style="cursor:pointer; color:Blue; text-decoration:underline" onclick='openPopupSupMonitoring("<%# Eval("by_na")%>", "<%# Eval("by_shift")%>", "<%# Eval("by_shop")%>", "<%= hdDate_tracking.Value %>",2)'>Xem</a>
                            </div>
                        </div>
                    </td>
                    <!-- End Giua gio -->

                    <!-- Cuoi gio -->
                    <td valign="top">
                    	<div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">GPS:</span><br/>
                        		<span style="line-height:25px;">Điện thoại: </span><br/>
                        		<span style="line-height:25px;">Hệ thống: </span><br/>
							</div>
                            <div style="float:left; padding-left:15px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_gps"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_phone"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_system"></asp:Label></span><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Đúng giờ:</span><br/>
                        		<span style="line-height:25px;">Đúng vị trí: </span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_ontime_status"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_gps_status"></asp:Label></span>&nbsp;&nbsp;<asp:HyperLink ID="hyperEndtime_Latlng" Target="_blank" Text="Xem" runat="server"></asp:HyperLink><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Hành động:</span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_action"></asp:Label></span><br/>
                                <a style="cursor:pointer; color:Blue; text-decoration:underline" onclick='openPopupSupMonitoring("<%# Eval("by_na")%>", "<%# Eval("by_shift")%>", "<%# Eval("by_shop")%>", "<%= hdDate_tracking.Value %>",3)'>Xem</a>
                            </div>
                        </div>
                    </td>
                    <!-- End Cuoi gio -->
                </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr bgcolor="#CCCCFF">
                	<td valign="middle" align="left" style="padding:5px;">
                        <asp:Label ID="lbBy_na" runat="server" Text='<%# Eval("by_na") %>' Visible="false"></asp:Label>
                        <span style="line-height:25px;"><%# Eval("by_na") %></span><br />
                        <span style="line-height:25px;"><%# Eval("na_name") %></span>
                    </td>
                    <td style="padding:5px">
                    	<span style="line-height:25px;"><%# Eval("shop_name") %></span><br/>
                        <span style="line-height:25px;"><%# Eval("shift_name") %></span><br />
                        <a style="padding:0px" target="_blank" href='<%# String.Format("MapWithClickablePushpins.aspx?shop={0}&type={1}", Eval("by_shop"),"viewShopPoint") %>'>Xem vị trí cửa hàng</a>
                        <asp:HiddenField ID="hdBy_shift" runat="server" Value='<%# Eval("by_shift") %>' ></asp:HiddenField>
                        <asp:HiddenField ID="hdBy_shop" runat="server" Value='<%# Eval("by_shop") %>' ></asp:HiddenField>
                    </td>
                    <!-- Dau gio -->
                    <td valign="top">
                    	<div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#000; font-style:italic; font-weight:bold">Thông tin giờ</span>
                        </div>
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">GPS:</span><br/>
                        		<span style="line-height:25px;">Điện thoại: </span><br/>
                        		<span style="line-height:25px;">Hệ thống: </span><br/>
							</div>
                            <div style="float:left; padding-left:15px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_gps"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_phone"></asp:Label></span><br/>
                          		<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_system"></asp:Label></span><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#000; font-style:italic; font-weight:bold">Trạng thái</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Đúng giờ:</span><br/>
                        		<span style="line-height:25px;">Đúng vị trí: </span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_ontime_status"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_gps_status"></asp:Label></span>&nbsp;&nbsp;<asp:HyperLink ID="hyperStarttime_Latlng" Target="_blank" Text="Xem" runat="server"></asp:HyperLink><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#000; font-style:italic; font-weight:bold">Hành động Supervisor</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Hành động:</span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbStarttime_action"></asp:Label></span><br/>
                                <a style="cursor:pointer; color:Blue; text-decoration:underline" onclick='openPopupSupMonitoring("<%# Eval("by_na")%>", "<%# Eval("by_shift")%>", "<%# Eval("by_shop")%>", "<%= hdDate_tracking.Value %>",1)'>Xem</a>
                            </div>
                        </div>
                    </td>
                    <!-- End Dau gio -->
                    
                    <!--Giua gio -->
                    <td valign="top">
                    	<div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">GPS:</span><br/>
                        		<span style="line-height:25px;">Điện thoại: </span><br/>
                        		<span style="line-height:25px;">Hệ thống: </span><br/>
							</div>
                            <div style="float:left; padding-left:15px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_gps"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_phone"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_system"></asp:Label></span><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Đúng giờ:</span><br/>
                        		<span style="line-height:25px;">Đúng vị trí: </span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_ontime_status"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_gps_status"></asp:Label></span>&nbsp;&nbsp;<asp:HyperLink ID="hyperMiddletime_Latlng" Target="_blank" Text="Xem" runat="server"></asp:HyperLink><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Hành động:</span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbMiddletime_action"></asp:Label></span><br/>
                                <a style="cursor:pointer; color:Blue; text-decoration:underline" onclick='openPopupSupMonitoring("<%# Eval("by_na")%>", "<%# Eval("by_shift")%>", "<%# Eval("by_shop")%>", "<%= hdDate_tracking.Value %>",2)'>Xem</a>
                            </div>
                        </div>
                    </td>
                    <!-- End Giua gio -->

                    <!-- Cuoi gio -->
                    <td valign="top">
                    	<div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">GPS:</span><br/>
                        		<span style="line-height:25px;">Điện thoại: </span><br/>
                        		<span style="line-height:25px;">Hệ thống: </span><br/>
							</div>
                            <div style="float:left; padding-left:15px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_gps"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_phone"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_system"></asp:Label></span><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Đúng giờ:</span><br/>
                        		<span style="line-height:25px;">Đúng vị trí: </span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_ontime_status"></asp:Label></span><br/>
                        		<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_gps_status"></asp:Label></span>&nbsp;&nbsp;<asp:HyperLink ID="hyperEndtime_Latlng" Target="_blank" Text="Xem" runat="server"></asp:HyperLink><br/>
                            </div>
                        </div>
                        
                        <div style="background-color:#94C4DA; padding:0px 0px 0px 5px; clear:both">
                        	<span style="line-height:28px; color:#FFFFFF; font-weight:bold">&nbsp;</span>
                        </div>
                        
                        <div style="padding:2px 10px; clear:both">
                        	<div style="float:left">
                            	<span style="line-height:25px; text-align:right">Hành động:</span><br/>
							</div>
                            <div style="float:left; padding-left:17px; padding-bottom:5px">
                            	<span style="line-height:25px;"><asp:Label runat="server" ID="lbEndtime_action"></asp:Label></span><br/>
                                <a style="cursor:pointer; color:Blue; text-decoration:underline" onclick='openPopupSupMonitoring("<%# Eval("by_na")%>", "<%# Eval("by_shift")%>", "<%# Eval("by_shop")%>", "<%= hdDate_tracking.Value %>",3)'>Xem</a>
                            </div>
                        </div>
                    </td>
                    <!-- End Cuoi gio -->
                </tr>    
                </AlternatingItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    <div style="float:right; padding-top:10px; display:none">
            <asp:PlaceHolder ID="pldTrang" runat="server">
                <div style="text-align:right;">
                     <asp:LinkButton ID="lbFirst" runat="server" CommandName="Paging" 
                                onclick="lbFirst_Click" Font-Underline="false"><< 
                                </asp:LinkButton>
                                <asp:LinkButton ID="lbPrev" runat="server" CommandName="Paging" 
                                    onclick="lbPrev_Click" Font-Underline="false">Trước
                                </asp:LinkButton>
                                <asp:DataList ID="dlPaging" runat="server" onitemcommand="dlPaging_ItemCommand" 
                                    onitemdatabound="dlPaging_ItemDataBound" 
                                    RepeatDirection="Horizontal" RepeatLayout="Flow">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lnkbtnPaging" runat="server" Text='<%#Eval("PageText") %>' 
                                        CommandName="Paging" onclientclick="lnkbtnPagingClick()"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:DataList>
                                <asp:LinkButton ID="lbNext" runat="server" CommandName="Paging" 
                                    onclick="lbNext_Click" Font-Underline="false">Tiếp</asp:LinkButton>
                                <asp:LinkButton ID="lbLast" runat="server" CommandName="Paging" 
                                    onclick="lbLast_Click" Font-Underline="false"> >>
                                </asp:LinkButton>
                                <span style=" margin-right:18px">&nbsp;</span>
                </div>
                </asp:PlaceHolder>
        </div>
    <div style="clear:both; height:10px"></div>